import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export const Routes = [
    {
        path: '/',
        component: (resolve) => require(['@/views/index.vue'], resolve),
        meta: {
            title: "首页"
        }
    }, {
        path: '/areaxList',
        name: "areaxList",
        component: (resolve) => require(['@/views/areaxList'], resolve),
    }
    , {
        path: '/cooperation',
        name: "cooperation",
        meta: {
            title: "合作公示"
        },
        component: (resolve) => require(['@/views/cooperation'], resolve),
    }
    , {
        path: '/expertTeam',
        name: "expertTeam",
        meta: {
            title: "专家团队"
        },
        component: (resolve) => require(['@/views/expertTeam'], resolve),
    }, {
        path: '/contact',
        name: "contact",
        meta: {
            title: "联系我们"
        },
        component: (resolve) => require(['@/views/contact'], resolve),
    }
]

export default new Router({
    // linkActiveClass:'active',
    mode: 'history', // 去掉url中的#
    scrollBehavior: () => ({ y: 0 }),
    routes: Routes
})
